package com.classroom;

public class StringDemo1 {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        String s = "a";
        for (int i = 0; i < 1000000; i++) {
            s += "a";
        }
        long end = System.currentTimeMillis();
        System.out.println(end - start);
    }
}
